package com.huan.social.baidu.connect;

import com.huan.social.baidu.api.Baidu;
import org.springframework.social.connect.support.OAuth2ConnectionFactory;

/**
 * 百度 connection fatory
 *
 * @author huan.fu
 * @date 2018/9/27 - 17:22
 */
public class BaiduConnectionFactory extends OAuth2ConnectionFactory<Baidu> {

	public BaiduConnectionFactory(String providerId, String clientId, String userInfoUrl, String clientSecret, String authorizeUrl, String accessTokenUrl) {
		super(
				providerId,
				new BaiduServiceProvider(clientId, clientSecret, userInfoUrl, authorizeUrl, accessTokenUrl),
				new BaiduAdapter()
		);
	}
}
